# 函数测试 9_1_test_fn.py
def get_fomatted_name(first:str, last:str, middle:str = ''):
    if middle:
        full_name = first + ' '  + middle + ' ' + last
    else:
        full_name = first +  ' ' + last
    return full_name.title()
